<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
<base href="<%=basePath%>">
<link rel="stylesheet" href="static/ace/css/bootstrap.css" />
<link rel="stylesheet" href="static/ace/css/font-awesome.css" />
<!-- text fonts -->
<link rel="stylesheet" href="static/ace/css/ace-fonts.css" />
<!-- ace styles -->
<link rel="stylesheet" href="static/ace/css/ace.css"
	class="ace-main-stylesheet" id="main-ace-style" />
<script type="text/javascript" src="static/js/jquery-1.7.2.js">
	<script type="text/javascript">
	$(top.hangge());
	
</script>
</head>
<body class="no-skin">
	
	<div class="main-container" id="main-container">
		
		<div class="main-content">
			<div class="main-content-inner">
				<div class="page-content">
					<div class="row">
						<div class="col-xs-12">
								<form  id="CCACostForm" method="post">
									<div id="zhongxin" style="padding-top: 13px;">
									<table id="table_report" class="table table-striped table-bordered table-hover">
									<tr>
									 <td style="width:79px;text-align: right;padding-top: 13px;">货物种类:</td>
									 <td><input type="text" name="GOODS_TYPE"   maxlength="32" placeholder="这里输入货物种类" title="货物种类"  style="width:98%;" /></td>
									 <td style="width:79px;text-align: right;padding-top: 13px;">江船公司:</td>
									 <td><input type="text" name="RIVER_BOAT_COMPANY"    maxlength="32" placeholder="这里输入江船公司" title="江船公司"  style="width:98%;" /></td>
								   </tr>
								   <tr>
									 <td style="width:79px;text-align: right;padding-top: 13px;">箱主:</td>
									 <td><input type="text" name="BOX_MASTER"   maxlength="32" placeholder="这里输入箱主" title="箱主" style="width:98%;" /></td>
									 <td style="width:79px;text-align: right;padding-top: 13px;">起点港:</td>
									 <td><input type="text" name="START_PORT"  maxlength="32" placeholder="这里输入起点港" title="起点港"  style="width:98%;" /></td>
								   </tr>
									<tr>
									 <td style="width:79px;text-align: right;padding-top: 13px;">终点港:</td>
									 <td><input type="text" name="END_PORT"   maxlength="32" placeholder="这里输入终点港" title="终点港"  style="width:98%;" /></td>
									 <td style="width:79px;text-align: right;padding-top: 13px;">费用名称:</td>
									 <td><input type="text" name="FRR_NAME"   maxlength="32" placeholder="这里输入费用名称" title="费用名称"  style="width:98%;" /></td>
								   </tr>	
									<tr>
									 <td style="width:79px;text-align: right;padding-top: 13px;">货币类型:</td>
									 <td><input type="text" name="CURRENCY_TYPE"   maxlength="32" placeholder="这里输入货币类型" title="货币类型" style="width:98%;" /></td>
									 <td style="width:79px;text-align: right;padding-top: 13px;">汇率:</td>
									 <td><input type="text" name="EXCHANGE_RATE"   maxlength="32" placeholder="这里输入汇率" title="汇率" style="width:98%;" /></td>
								   </tr>	
									<tr>
									 <td style="width:79px;text-align: right;padding-top: 13px;">单价:</td>
									 <td><input type="text" name="UNIT_PRICE"   maxlength="32" placeholder="这里输入单价" title="单价"  style="width:98%;" /></td>
									 <td style="width:79px;text-align: right;padding-top: 13px;">结算单位:</td>
									 <td><input type="text" name="SETTLE_UNIT"    maxlength="32" placeholder="这里输入结算单位" title="结算单位"  style="width:98%;" /></td>
								   </tr>
								  <tr>
									<td style="width:79px;text-align: right;padding-top: 13px;">收付款标志:</td>
									<td>
										<select name="COLLECT_PAYMENT_SIGN" title="收付款标志" maxlength="32" style="width:98%;">
										<option value="">全部</option>
										<option value="1">收</option>
										<option value="0">未</option>
										</select>
									</td>
									<td style="width:79px;text-align: right;padding-top: 13px;">箱型代码:</td>
									<td>
										<select name="BOX_TYPE_CODE" title="箱型代码" maxlength="32" style="width:98%;">
										<option value="">全部</option>
										<option value="1">SHY</option>
										<option value="2">HJKH</option>
										<option value="0">ADS</option>
										</select>
									</td>
								  </tr>
								  <tr>
									<td style="width:79px;text-align: right;padding-top: 13px;">空重标志:</td>
									<td>
										<select name="EMPTY_BOX" title="空重标志" maxlength="32" style="width:98%;">
										<option value="">全部</option>
										<option value="1">重</option>
										<option value="0">空</option>
										</select>
									</td>
									<td style="width:79px;text-align: right;padding-top: 13px;">进出口标志:</td>
									<td>
										<select name="IMPORT_AND_EXPORT_SIGN" title="进出口标志" maxlength="32" style="width:98%;">
										<option value="">全部</option>
										<option value="1">进口</option>
										<option value="0">出口</option>
										</select>
									</td>
								  </tr>
								    <tr>
									<td style="width:79px;text-align: right;padding-top: 13px;">是否可用:</td>
									<td>
										<select name="ENABLE" title="是否可用" maxlength="32" style="width:98%;">
										<option value="">全部</option>
										<option value="1">是</option>
										<option value="0">否</option>
										</select>
									</td>
									<td style="width:79px;text-align: right;padding-top: 13px;">备注:</td>
									 <td><input type="text" name="REMARK"  maxlength="32" placeholder="这里输入邮箱" title="邮箱" onblur="hasE('${pd.USERNAME }')" style="width:98%;" /></td>
								  </tr>
								  <tr>
											<td style="width:79px;text-align: right;padding-top: 13px;">航线:</td>
											<td><input type="text" name="ROUTE_CODE"  placeholder="这里输入备注" maxlength="64" title="备注" style="width:98%;"/></td>
										</tr>		
										<tr>
											<td style="text-align: center;" colspan="10">
												<a class="btn btn-mini btn-primary" onclick="save();">保存</a>
												<a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
											</td>
										</tr>
									</table>
									</div>
									<div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green"></h4></div>
								</form>
						</div>
						<!-- /.col -->
					</div>
					<!-- /.row -->
				</div>
				<!-- /.page-content -->
			</div>
		</div>
		<!-- /.main-content -->
	</div>
	
</body> 
<script type="text/javascript">
	function save(){	
		$.ajax({
			type:"post",
			url:'<%=basePath%>cca/saveU',
			data:$("#CCACostForm").serialize(),
			dataType:"text",
			success:function(data){
				top.Dialog.close()
				window.location.reload();	
			}
			
		})
		
	}
</script>
</html>